package com.cauli.file.model.dto.file;

import com.cauli.model.dto.BaseDTO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Cauli
 * @date 2023/4/14 13:48
 * @description 用户文件DTO
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserFileDTO", description = "用户文件DTO")
public class UserFileDTO extends BaseDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("用户文件关联ID")
    private Long userFileId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("用户ID")
    private Long userId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("文件ID")
    private Long fileId;

    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("扩展名")
    private String extendName;

    @ApiModelProperty("文件路径")
    private String filePath;

    @ApiModelProperty("是否是目录(0否 1是)")
    private Integer isDir;

    @ApiModelProperty("删除时间")
    private String deleteTime;

    @ApiModelProperty("删除批次号")
    private String deleteBatchNum;

    @ApiModelProperty("回收站删除标志(0存在 1删除)")
    private Integer deleteFlag;
}
